/**
 * Created by XiongXiang on 2017/9/4.
 */
import React from 'react';
import ReactDOM from 'react-dom';
import {Route,BrowserRouter as Router} from 'react-router';
import App from './Component/Index';

// 监听State的变化;
// store.subscribe(() => {
//     console.log(store.getState());
// });

export default class Root extends React.Component{
    render(){
        return (
            <div>
                <Router>
                    <Route path='/' component={App}></Route>
                    <Route path='/about' component={App}></Route>
                </Router>
            </div>
        )
    }
}

ReactDOM.render(<Router>
    <Route path='/' component={App}></Route>
    <Route path='/about' component={App}></Route>
</Router>,document.getElementById("root"));